<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>月牙直播</title>
    </head>
    <body>
        <h5>你好呀, 欢迎来到我的直播间!!</h5>
        <script src="https://cdn.bootcss.com/flv.js/1.4.0/flv.min.js"></script>
        <video id="videoElement" style="width: 50%;" controls="controls"></video>

        <script>
            if (flvjs.isSupported()) {
                var videoElement = document.getElementById('videoElement');
                var flvPlayer = flvjs.createPlayer({
                    type: 'flv',
                    url:'http://192.168.121.1:8000/live/zyc.flv'
                });
                flvPlayer.attachMediaElement(videoElement);
                flvPlayer.load();
                flvPlayer.play();
            }
        </script>
    </body>
</html>